package xyz.heyaoshare.core.mapper.system;

import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import xyz.heyaoshare.core.controller.system.dict.vo.req.DictDataByTypeNameReqVO;
import xyz.heyaoshare.core.controller.system.dict.vo.resp.DictSimpleListRespVO;
import xyz.heyaoshare.core.entity.system.DictData;

import java.util.List;

/**
 * 字典数据 Mapper
 * @author YueHe
 * @version 0.0.1
 * @since 2025/6/25 下午1:55
 */
@Mapper
public interface DictDataMapper extends BaseMapper<DictData> {

    /**
     * 根据字典类型名称查询
     * @param reqVO 字典类型名称
     * @return 字典数据列表
     */
    List<DictData> getByTypeName(DictDataByTypeNameReqVO reqVO);

    /**
     * 查询字典数据列表
     * @return 字典数据列表
     */
    List<DictSimpleListRespVO> simpleList();

}